#!/bin/bash

rsync -arqh ~/.config/i3 ~/dots/.config/
rsync -arqh ~/.config/dunst ~/dots/.config/
rsync -arqh ~/.config/i3blocks ~/dots/.config/
rsync -arqh ~/.config/mpd ~/dots/.config/
rsync -arqh ~/.config/mpv ~/dots/.config/
rsync -arqh ~/.config/ranger ~/dots/.config/

rsync -arqh ~/.profile ~/dots/
rsync -arqh ~/.zprofile ~/dots/
rsync -arqh ~/.scripts/ ~/dots/.scripts/
rsync -arqh ~/.vimrc ~/dots/
rsync -arqh ~/.xinitrc ~/dots/
rsync -arqh ~/.Xresources ~/dots/
rsync -arqh ~/.zshrc ~/dots/

the_time=$(date +%H:%m)
the_day=$(date +%d-%m-%y)

cd ~/dots && git add .
git commit -m "Auto upload at $the_time, on $the_day"
git push
